package cn.young.javalearning.designpattern.prototype.simple;

public class Main {
    public static void main(String[] args) {
        PrototypeA prototypeA = new PrototypeA();
        prototypeA.setAge("11");
        prototypeA.setName("shiyang");
        Client client = new Client(prototypeA);
        Prototype prototype = client.startClone();
        System.out.println("prototype= [" + prototype + "]");
        System.out.println("prototypeA = [" + prototypeA + "]");

    }
}
